package share

import "oc_saas/model/base"

const (
	GET    = "GET"
	POST   = "POST"
	PUT    = "PUT"
	DELETE = "DELETE"
	BUTTON = "BUTTON"
)

// api表
type Api struct {
	base.IDColumn
	Type   string `json:"type" gorm:"type:varchar(10);size:10;not null;comment:请求类型"`
	Path   string `json:"path" gorm:"type:varchar(100);size:100;not null;comment:请求路径"`
	RuleID uint   `json:"rule_id" gorm:"not null;comment:对应的规则ID"`
}
